<?php
namespace Home\Model;
use Think\Model\ViewModel;
class ProductViewModel extends ViewModel{
	protected $connection = 'PRODUCT';
	protected $tablePrefix = '';
    public $viewFields = array(
    'Pro'=>array('id'=>'bid','intr','base','name','travel_no','type','status','_table'=>"pro_b",'_as'=>'Pro'),
    'Img'=>array('img','_table'=>"pro_img",'_as'=>'Img','_on'=>'Pro.id=Img.bid'),
    'Price'=>array('min(price)'=>'price','child_price','starttime','id'=>'pid','starttime','_table'=>"pro_price",'_as'=>'Price','_on'=>'Pro.id=Price.bid'),
    // 'Img'=>array('img','_table'=>"pro_img",'_as'=>'Img','_on'=>'Pro.id=Img.bid'),
   );
}
?>